(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.socialLayoutView = (function(_super) {

    __extends(socialLayoutView, _super);

    function socialLayoutView() {
      return socialLayoutView.__super__.constructor.apply(this, arguments);
    }

    socialLayoutView.prototype.el = $("#content");

    socialLayoutView.prototype.initialize = function() {
      var asside, section;
      section = $(this.el).find('section');
      asside = $(this.el).find('aside');
      if ((section === null || section.length === 0) && (asside === null || asside.length === 0)) {
        return this.render();
      }
    };

    socialLayoutView.prototype.render = function() {
      var friendsModel, friendsRequestModel, friendsRequestView, friendsView, profileModel, profileView;
      $(this.el).html("<section></section><aside><div class='Avatar'></div><div class='Friends'></div><div class='FriendIsAccepted'></div></aside>");
      profileModel = new SocialProfileModel();
      profileModel.set("Login", this.model.get("Login"));
      profileView = new SocialProfileView({
        model: profileModel
      });
      friendsModel = new SocialFriendsModel();
      friendsModel.set("Login", this.model.get("Login"));
      friendsView = new SocialFriendsView({
        model: friendsModel
      });
      friendsRequestModel = new socialFriendsRequestModel();
      friendsRequestModel.set("Login", this.model.get("Login"));
      return friendsRequestView = new SocialFriendsRequestView({
        model: friendsRequestModel
      });
    };

    return socialLayoutView;

  })(Backbone.View);

}).call(this);
